﻿using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace Inaction.DbSchame
{
    [Serializable]
    [DisplayName("惟一索引")]
    public class UniqueKey : NameObject
    {
        #region 属性
        [DisplayName("所属表")]
        public Table Table { get; internal set; }
        [DisplayName("列集合")]
        public List<Column> Columns { get; internal set; }
        #endregion

        public UniqueKey()
        {
            Columns = new List<Column>();
        }

        public override string ToString()
        {
            return "UniqueKey:" + Name;
        }
    }
}
